package tech.kunyuan.mapper;

import org.apache.ibatis.annotations.Mapper;
import tech.kunyuan.annotation.Master;
import tech.kunyuan.annotation.Slave;
import tech.kunyuan.domain.Code;

import java.util.List;

/**
 * Description:
 *
 * @Author: ky
 * DateTime: 2022-10-20 10:15
 */
@Mapper
public interface CodeMapper {

    @Master
    public List<Code> queryAll(Code resources);

    @Slave
    public Code queryOne(Integer id);
}
